package com.linux.huhx.codetools;

import com.linux.huhx.codetools.transutil.CodeToolUtils;

import java.io.*;

/**
 * Created by huhx on 2017-05-31.
 */
public class CodeGenerate_1 {
    public static void main(String[] args) throws Exception {
        InputStream in = new FileInputStream("D:\\file/huhx3.txt");
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(in));
        String line = "";
        PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream("D:\\file/huhx4.txt")));
        String lineData = "";
        while ((line = bufferedReader.readLine()) != null) {
            // lineData = "<varString name=\"" + line + "\" type=\"D|\"></varString>" + "\n";
            // lineData = "<elementAlias name=\"" + getWithContent(line) + "\" alias=\"" + line + "\" />" + "\n";
            lineData = CodeToolUtils.getWithHumpContent(line + "\n");
            out.print(lineData);
        }
        out.close();
        bufferedReader.close();
    }
}
